<?php
/**
 * Created by PhpStorm.
 * User: lenovo
 * Date: 2017/8/29
 * Time: 21:51
 */

class UserModel{

    public function getUserInfo($userId)
    {
        //数据库操作
        $userDao = new Dao\UserModel();
        echo $userinfo = $userDao->getUserInfo($userId);
        //接口调用
        $userBbs = new Interfaces\BbsModel();
        echo $userBbs->getBbsInfo($userId);

        //return '用户信息：'.$userId;
        return [$userinfo,$userBbs];
    }

}